package com.HRs.Service;

import com.HRs.Dao.dtADao;
import com.HRs.Dao.dtADaolmpl;
import com.HRs.domain.Dtadministrator;
import com.HRs.domain.Patient;
import com.HRs.domain.Visit;

import java.util.ArrayList;

public class dtAServicelmpl implements dtAService{
    dtADao dD = new dtADaolmpl();

    @Override
    public boolean Login_dtA(String Id, String Password) {
        return dD.Login_dtA(Id, Password);
    }

    @Override
    public ArrayList<Dtadministrator> get_Dta() {
        return dD.get_Dta();
    }

    @Override
    public void delete_row(int row) {
        dD.delete_row(row);
    }

    @Override
    public void insert(Dtadministrator dta) {
        dD.insert(dta);
    }

    @Override
    public void delete_v(String ID, String info) {
        dD.delete_v(ID,info);
    }

    @Override
    public void insert_v(Visit v, String id) {
        dD.insert_v(v, id);
    }

    @Override
    public ArrayList<Visit> get_V(String id) {
        return dD.get_V(id);
    }

    @Override
    public ArrayList<Patient> get_P(String Date) {
        return dD.get_P(Date);
    }

    @Override
    public int count_OdNum(String id) {
        return dD.count_OdNum(id);
    }

    @Override
    public void flush_(String dt) {
        dD.flush_(dt);
    }
}
